//
//  AddCoinAddressViewController.m
//  project
//
//  Created by 张亚林 on 2017/11/8.
//  Copyright © 2017年 Macmini. All rights reserved.
//

#import "AddCoinAddressViewController.h"

#import "ZWTools.h"

@interface AddCoinAddressViewController ()

@property (weak, nonatomic) IBOutlet UITextField *addressTF;
@property (weak, nonatomic) IBOutlet UITextField *remarkTF;


@end

@implementation AddCoinAddressViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (IBAction)clickDone:(id)sender {
    NSMutableDictionary *requestParameter = [NSMutableDictionary dictionary];
    requestParameter[@"ownerIsUser"] = @"true";
    requestParameter[@"collectionType"]  = @"3";
    requestParameter[@"collectionAddr"] = self.addressTF.text;
    requestParameter[@"alias"] = self.remarkTF.text;
    
    ZWTools *tools = [ZWTools sharedManager];
    [tools addCoinAddress:requestParameter sucessBlock:^(id jsonResponse) {
        
    } Error:^(id jsonResponse) {
        
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
